import request from '@/utils/request'

// 查询卡卡-主充值卡列表
export function listCardmain(query) {
  return request({
    url: '/kakabl/cardmain/list',
    method: 'get',
    params: query
  })
}

// 查询卡卡-主充值卡详细
export function getCardmain(id) {
  return request({
    url: '/kakabl/cardmain/' + id,
    method: 'get'
  })
}

// 新增卡卡-主充值卡
export function addCardmain(data) {
  return request({
    url: '/kakabl/cardmain',
    method: 'post',
    data: data
  })
}

// 修改卡卡-主充值卡
export function updateCardmain(data) {
  return request({
    url: '/kakabl/cardmain',
    method: 'put',
    data: data
  })
}

// 删除卡卡-主充值卡
export function delCardmain(id) {
  return request({
    url: '/kakabl/cardmain/' + id,
    method: 'delete'
  })
}


// 新增激活码详情  - 批量增加
export function deleteTbRechargeableCardMainByBathId(data) {
  return request({
    url: '/kakabl/cardmain/detele/batch?bathId='+data,
    method: 'post'
  })
}

